<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<fmt:bundle
	basename="br.com.universidade.castelo.branco.resources.ApplicationResources"
	prefix="">

	<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	</head>

	<body>
		<jsp:include page="/WEB-INF/views/pesquisadesatisfacao/menu.jsp"
			flush="true"></jsp:include>

		<img src="resources/imagens/pixel_transparente.gif" height="5%"
			width="10%">

		<div align="center">

			<fieldset id="fieldsetConsulta">

				<legend id="alinhamentoFormConsulta">
					<h3>
						<fmt:message key="pesquisas.modulo.titulo"></fmt:message>
					</h3>
				</legend>

				<br />
				<c:forEach items="${listaPesquisas}" var="pesquisa">
		
				<form action="emiteRelatorioComparacao" method="post">
					

						<fieldset id="fieldsetConsulta">



							<table class=linhasAlternadas align="center">





								<tr>
									<th><fmt:message
											key="consulta.modulo.questionario.campo.titulo.questionario"></fmt:message></th>
									<th><fmt:message key="consulta.modulo.pesquisa.campo.tema"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.objetivo"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.comentario"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.data.inicio"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.data.termino"></fmt:message></th>
								</tr>

								<c:forEach items="${pesquisa.pesquisas}" var="pesquisa">
									<tr>

										<td>${pesquisa.auxTitulo}<input type="hidden" name="auxTitulo" value="${pesquisa.auxTitulo}"><input	type="hidden" name="id_pesquisa" value="${pesquisa.id_pesquisa}"><input	type="hidden" name="id_questionario" value="${pesquisa.id_questionario}"></td>
										<td>${pesquisa.tema}<input type="hidden" name="tema" value="${pesquisa.tema}"></td>
										<td>${pesquisa.objetivo}<input type="hidden" name="objetivo" value="${pesquisa.objetivo}"></td>
										<td>${pesquisa.comentario}<input type="hidden" name="comentario" value="${pesquisa.comentario}"></td>
										<td><fmt:formatDate value="${pesquisa.dataInicio}" /><input	type="hidden" name="dataInicio"	value="${pesquisa.dataInicio}"></td>
										<td><fmt:formatDate value="${pesquisa.dataTermino}" /><input type="hidden" name="dataTermino" value="${pesquisa.dataTermino}"></td>
									</tr>
								</c:forEach>
								
							</table>
							<table>
								<tr>
									<td><br /></td>

								</tr>

								<tr>
									<td><input id="botao" type="submit"
										value='<fmt:message key="pds.botao.comparar"></fmt:message>'>
									</td>
								</tr>

							</table>

							<br />

						</fieldset>
						<br />
						<br />
						<br />
					
				</form>
				</c:forEach>
			</fieldset>
		</div>
	</body>
</fmt:bundle>
</html>